﻿#include "dept.h"

Dept::Dept(QObject *parent) : QBaseEntity(parent)
{
    clear();
    const QMetaObject *metaObject = this->metaObject();
    setTableName(QString(metaObject->className()).toLower());
    setPrimaryKey("id");
}

Dept::Dept(uint64_t id, QString name, uint64_t pid, QString remark, int status)
{
    clear();
    const QMetaObject *metaObject = this->metaObject();
    setTableName(QString(metaObject->className()).toLower());
    setPrimaryKey("id");

    this->id = id;
    this->name = name;
    this->pid = pid;
    this->remark = remark;
    this->status = status;
}

Dept::~Dept()
{

}

uint64_t Dept::getId() const
{
    return id;
}

void Dept::setId(const uint64_t &value)
{
    id = value;
}

QString Dept::getName() const
{
    return name;
}

void Dept::setName(const QString &value)
{
    name = value;
}

uint64_t Dept::getPid() const
{
    return pid;
}

void Dept::setPid(const uint64_t &value)
{
    pid = value;
}

QString Dept::getRemark() const
{
    return remark;
}

void Dept::setRemark(const QString &value)
{
    remark = value;
}

int Dept::getStatus() const
{
    return status;
}

void Dept::setStatus(int value)
{
    status = value;
}
